package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 同城用户
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-25
 */
@TableName("user_basics")
public class UserBasics extends Model<UserBasics> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 手机号
     */
    private String account;
    /**
     * 密码
     */
    private String password;
    /**
     * 密码盐
     */
    private String salt;
    /**
     * 用户头像
     */
    @TableField("head_img")
    private String headImg;
    /**
     * 上级ID
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 邀请码
     */
    private String code;
    /**
     * 豌豆数量
     */
    @TableField("peas_quantity")
    private BigDecimal peasQuantity;
    /**
     * 0正常 1冻结
     */
    private Integer status;
    /**
     * 连续登陆天数
     */
    @TableField("continuous_login")
    private Integer continuousLogin;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getPeasQuantity() {
        return peasQuantity;
    }

    public void setPeasQuantity(BigDecimal peasQuantity) {
        this.peasQuantity = peasQuantity;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getContinuousLogin() {
        return continuousLogin;
    }

    public void setContinuousLogin(Integer continuousLogin) {
        this.continuousLogin = continuousLogin;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserBasics{" +
        "id=" + id +
        ", account=" + account +
        ", password=" + password +
        ", salt=" + salt +
        ", headImg=" + headImg +
        ", parentId=" + parentId +
        ", code=" + code +
        ", peasQuantity=" + peasQuantity +
        ", status=" + status +
        ", continuousLogin=" + continuousLogin +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
